<template>
  <view class="container">
    <view class="uni-flex uni-flex-item uni-row">
      <number-box v-model="number" @increase="handleCount(1)" @reduce="handleCount(-1)"></number-box>
    </view>
  </view>
</template>

<script>
  import numberBox from '../../components/number-box.vue'

  export default {
    data: {
      number: 1
    },
    methods: {
      handleCount(count) {
        console.log('current number:' + this.number);
      }
    },
    components: {
      numberBox
    }
  }
</script>

<style>
  .container {
    padding: 22px 30px 22px 30px;
  }
</style>
